package service.impl;

import mapper.infomapper;
import org.springframework.stereotype.Service;
import pojo.AppCategory;
import pojo.AppInfo;
import service.infoservice;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2019/1/28.
 */
@Service

public class infoserviceimpl implements infoservice {


@Resource
public infomapper infomapper;
    @Override
    public List<AppInfo> infoAll(AppInfo appInfo, int currPageNo, int pageSize) {
        Map<String,Object> AppInfomap=new HashMap<String, Object>();
        AppInfomap.put("appInfo",appInfo);
        AppInfomap.put("currPageNo",currPageNo);
        AppInfomap.put("pageSize",pageSize);

        return infomapper.infoAll(AppInfomap);
    }

    @Override
    public int Cont() {
        return infomapper.Cont();
    }

    @Override
    public int delect(int idd) {
        return infomapper.delect(idd);
    }

    @Override
    public int update(int id) {
        return infomapper.update(id);
    }

    @Override
    public List<AppCategory> categoryLevel1() {
        return infomapper.categoryLevel1();
    }

}
